Handler for binding runtimes. More...
#include <kanzi/core.ui/binding/binding_runtime_handle.hpp>
Public Member Functions | |
BindingRuntimeHandle ()=default | |
Default constructor. | |
BindingRuntimeHandle (AbstractBindingRuntimeSharedPtr binding) | |
Constructor. | |
AbstractBindingRuntimeSharedPtr | getBinding () const |
Gets the shared pointer of a runtime binding. | |
operator bool () const | |
Returns whether the binding runtime is still valid. | |
AbstractBindingRuntime * | operator-> () const |
Accesses binding runtime functions. | |
void | reset () |
Resets the binding runtime. | |
long | use_count () const |
Protected Attributes | |
AbstractBindingRuntimeWeakPtr | m_binding |
Weak reference to the binding runtime. | |
Handler for binding runtimes.
This handler contains a weak pointer m_binding that does not take an ownership of the binding runtime or prevent the destruction of the binding.
|
explicitdefault |
Default constructor.
|
inlineexplicit |
Constructor.
binding | The created binding runtime. |
|
inline |
Accesses binding runtime functions.
|
inline |
Returns whether the binding runtime is still valid.
|
inline |
Gets the shared pointer of a runtime binding.
|
inline |
Resets the binding runtime.
|
inline |
|
protected |
Weak reference to the binding runtime.